<?php
/**
 * Created by PhpStorm.
 * User: apple
 * Date: 2019/2/15
 * Time: 上午9:51
 */

include("phpqrcode/qrlib.php");

// 获取data
$qrstr = $_GET["data"];


// outputs image directly into browser, as PNG stream
QRcode::png("".$qrstr);